
const getCurtentCityName = function(){
    return new Promise((resolve,reject)=>{
        let myCity = new ImageBitmap.localCity();
        myCity.get((result)=>{
            let geoc = new ImageBitmap.geocoder();
            geoc.getLocation(result.center,(rs)=>{
                let addComp = rs.addressComponents;
                let result = addComp.city + addComp.district;
                resolve(result);
            });
        },{enableHighAccuracy:true});
    })
}
export default getCurtentCityName